package com.miyake.dsp.generator;

import com.miyake.dsp.osa.lab.LabUiAnnotation;

public class PulseSetting  {
	@LabUiAnnotation(caption="Width")
	private double width;
	@LabUiAnnotation(caption="Magnitude")
	private double magnitude;
	@LabUiAnnotation(caption="Frequency")
	private double frequency;
	@LabUiAnnotation(caption="Margin (%)")
	private double margin;
	
	public PulseSetting(double width, double magnitude, double margin, double samplingFrequency) {
		super();
		this.width = width;
		this.magnitude = magnitude;
		this.margin = margin;
		this.frequency = samplingFrequency;
	}

	public PulseSetting(double width, double magnitude) {
		super();
		this.width = width;
		this.magnitude = magnitude;
		this.margin = 50;
	}
	
	public PulseSetting(double width, double magnitude, double margin) {
		super();
		this.width = width;
		this.magnitude = magnitude;
		this.margin = margin;
	}
	
	public double getWidth() {
		return width;
	}

	public void setWidth(double width) {
		this.width = width;
	}

	public double getFrequency() {
		return frequency;
	}

	public void setFrequency(double samplingFrequency) {
		this.frequency = samplingFrequency;
	}

	public double getMagnitude() {
		return magnitude;
	}

	public void setMagnitude(double magnitude) {
		this.magnitude = magnitude;
	}

	public double getMargin() {
		return margin;
	}

	public void setMargin(double margin) {
		this.margin = margin;
	}
	
}
